<template>
	<view class="container">
		<People v-if="user.type=='people'"></People>
		<Staff v-else></Staff>
	</view>
</template>

<script>
	import People from "./index-people.vue";
	import Staff from "./index-staff.vue";
	
	export default {
		components: { People, Staff },
		data() {
			return {
				user: {}
			}
		},
		created() {
			this.user = this.$store.getUser();
		},
		methods: {
			
		}
	}
</script>

<style>
	/* .container {
		width: 750upx;
		height: 100vh;
		position: relative;		
	} */
	
</style>
